import com.fz.entity.User;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Z-C-Y on 2018-02-03.
 */
public class Demo {
    @Test
    public void ss(){
        ClassPathXmlApplicationContext f = new ClassPathXmlApplicationContext("beans.xml");
       User uu = f.getBean("user", User.class);
       System.out.println(uu);
    }






    @Test
    public void nn() {
        ClassPathXmlApplicationContext f = new ClassPathXmlApplicationContext("beans.xml");
        String[] bs = f.getBeanDefinitionNames();
        for (String ss : bs) {
            System.out.println(ss);
        }

    }



}
